package com.itheima.domain;

import java.util.Date;

public class Trip {
    private Long id; //主键ID
    private String username; //用户名称
    private Integer gender; //0:女 1:男
    private String idcard; //用户身份证
    private String fromAddress; //出发地
    private String toAddress;//到达地
    private Date startTime;//出发时间

    public Trip() {
    }

    public Trip(Long id, String username, Integer gender, String idcard, String fromAddress, String toAddress, Date startTime) {
        this.id = id;
        this.username = username;
        this.gender = gender;
        this.idcard = idcard;
        this.fromAddress = fromAddress;
        this.toAddress = toAddress;
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return gender
     */
    public Integer getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(Integer gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return idcard
     */
    public String getIdcard() {
        return idcard;
    }

    /**
     * 设置
     * @param idcard
     */
    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    /**
     * 获取
     * @return fromAddress
     */
    public String getFromAddress() {
        return fromAddress;
    }

    /**
     * 设置
     * @param fromAddress
     */
    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    /**
     * 获取
     * @return toAddress
     */
    public String getToAddress() {
        return toAddress;
    }

    /**
     * 设置
     * @param toAddress
     */
    public void setToAddress(String toAddress) {
        this.toAddress = toAddress;
    }

    /**
     * 获取
     * @return startTime
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String toString() {
        return "Trip{id = " + id + ", username = " + username + ", gender = " + gender + ", idcard = " + idcard + ", fromAddress = " + fromAddress + ", toAddress = " + toAddress + ", startTime = " + startTime + "}";
    }
}
